package com.unicorn.annotation;

import com.unicorn.condition.MyCondition;
import org.springframework.context.annotation.Conditional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Description
 * @Author Meng.shen
 * @Date 2022/12/6
 **/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Conditional(MyCondition.class)
public @interface MyConditionOnClass {

    String value() default "";

}
